package com.ktgj.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktgj.common.core.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WholeMallOrder implements Serializable {
    public WholeMallOrder() {
        this.imgPath = new ArrayList<>();
    }

    /** 订单主键 */
    private Long orderId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private List<String> imgPath;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 需要支付金额 = amount - coupon_price */
    @Excel(name = "需要支付金额 = amount - coupon_price")
    private BigDecimal payAmount;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long number;

    /** 支付有效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付有效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiredTime;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public List<String> getImgPath() {
        return imgPath;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }
}
